import request from 'utils/request'

/*
  外部供应商搜索相关api
  */
 
 //搜索外部商品
 export const externalProd = (params) => request.get("/p/jdOnline/getJdProd",params);
 
 //获取搜索历史
 export const getHistory = (params) => request.get("/p/jdOnline/getSearchHistories",params);

//删除历史记录
export const deleteHistory = (params) => request.post("/p/jdOnline/deleteSearchHistories",params);

// 上架商品
export const onshelfProduct = (id) => request.post(`/p/jdOnline/online/${id}`);

// 获取京东猜你喜欢的商品列表
export const getProdList = params => request.post('/p/jdOnline/search/prodlist', params);

// 获取访问上架的权限
export const getAuth = params => request.get('/p/jdOnline/getJdProdOnlineFlag', params);
